#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
    config
    -----------------------------
    配置  
    :copyright: (c) 2020 by zcyuefan.
    :license: LICENSE_NAME, see LICENSE_FILE for more details.
"""
import os
# Get the app root path
basedir = os.path.abspath(os.path.dirname(__file__))


class Config:
    # 被统计禅道用户列表，即禅道中zt_user表中的account
    ZENTAO_USERS = ['liyang','haoshibin','zhangxuexian','zhangzhenkai','chenlihua','fanyajiao','liqi','jiawenqiang','zhangjin','liuzheng','haozhanxiong','jiaxiaoye','xuchihua','wangshaobo','litong','xuming','shenliqiang','yangfan','qinhao','maqicheng','lining','xukai99','wangzhendong','renyouchuan','lilei','yangxukang','chengyanming','miweiqiang','baijingfang','tianxiaoning','wufanggang','yanchongkun','xml','zhaixiaojun','zhangpanpan','shikefeng','liuzichen','yangfan7','zhangshaoyang','wanglipeng','zhangwei','yaoxuntao','zhaoshaoyang','duwei','wangxueliang','guxianqiang','jiaohongqiang','guoxiaojun','ddd','wangyuqi','wangjiafan','lixingshuai','dongliguo','fanyunpeng','tiankailong','zhangkai','niulishuo','hujian','wangguangze','yanhebin','wangzhuo','xingzhenyu','renziming','zhangzizheng']
    # 禅道数据库设置
    ZENTAO_DB = {
        'host': '172.16.1.88',
        'port': 3308,
        'db': 'zentao',
        'user': 'root',
        'passwd': 'allRtwNDtON',
        'charset': 'utf8',
    }
    # 报告生成路径
    REPORTS_PATH = os.path.join(basedir, 'reports')
    # 模板路径
    TEMPLATES_PATH = os.path.join(basedir, 'templates')
    # 短期天数定义，用于统计短期任务情况
    SHORT_PERIOD_DAY = 3


default_config = Config()
